package createArff;

import Types.Sentence;

public class FeaturesForSVM {

    public String ReturnVector(Sentence sent) {
        String vect = "";
        try {
            vect = Integer.toString(sent.getText().split(" ").length);///NumberOfWords
            vect += ", ";
            vect = vect + Integer.toString(sent.getEntitiesList().size());//NumberOfEntities
            vect += ", ";
            vect = vect + Integer.toString(sent.getDdiList().size());//NumberOfDDI
            vect += ", ";
            vect = vect + Integer.toString(sent.getText().length());///NumberOfChar

        } catch (Throwable t) {
        }
        return vect;
    }
}
